import { createVisualEditorConfig } from "../utils/visual.util";
import { Input, Button } from "antd";

export const visualConfig = createVisualEditorConfig();

visualConfig.registry('text', {
    label: '文本',
    preview: () => '预览文本',
    render: () => '渲染文本'
})
visualConfig.registry('button', {
    label: '按钮',
    preview: () => <Button>按钮</Button>,
    render: () => <Button>渲染按钮</Button>
})
visualConfig.registry('input', {
    label: '输入框',
    preview: () => <Input readOnly />,
    render: () => <Input />
})